package com.sf.test.web.service.impl;  
  
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sf.test.web.dao.UserMapper;
import com.sf.test.web.model.User;
import com.sf.test.web.service.IUserService;

  
  
@Service("userService")  
public class UserServiceImpl implements IUserService {  
	@Autowired
	private UserMapper userMapper;
    @Override  
    public List<User> getAllUser() {  
        // TODO Auto-generated method stub  
        return this.userMapper.getAllUser();
        
    }
    @Override  
    public User getUserById(String userId) {  
    	// TODO Auto-generated method stub  
    	return this.userMapper.getUserById(userId);
    	
    }
    
    @Override  
    public void batchAddUser(List<User> userList) {  
    	// TODO Auto-generated method stub  
    	 this.userMapper.batchAddUser(userList);
    	
    }
	@Override
	public void addUser(User user) {
		// TODO Auto-generated method stub
		 this.userMapper.addUser(user);
		
	}
	
	@Override
	public void modifyUser(User user){
		// TODO Auto-generated method stub
		this.userMapper.modifyUser(user);
		
	}
	@Override
	public void deleteUser(String userId) {
		// TODO Auto-generated method stub
		this.userMapper.deleteUser(userId);
	}
}